from datetime import datetime


def check_datetime(start_datetime, end_datetime):
    now = datetime.now()
    start_datetime = strpdatetime(start_datetime)
    end_datetime = strpdatetime(end_datetime)

    return True if now >= start_datetime and now <= end_datetime else False


def strpdatetime(datetimestr):
    return datetime.strptime(datetimestr,"%Y-%m-%d %H:%M:%S")